﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Channel.aspx.cs" Inherits="AzureBlogWebRole.Channel" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title runat="server" ></title>
     
</head>
<body>
    <form id="form1" runat="server">--%>
   <asp:Content ID="Content1" ContentPlaceHolderID="cphBody" runat="server">


    <div>
        <asp:Panel ID="Panel1" runat="server">
            <asp:Label ID="L_NameChannel" runat="server" Text="" style="font-weight:bold" ></asp:Label><br />
        
        <table style="width:100%;">
            <tr>
                <td>
                    
                    Auteur :</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="TB_author" runat="server"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Rentrez votre message :"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="TB_content" runat="server" Height="113px" Width="400px" TextMode="MultiLine"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="Bt_send" runat="server" onclick="Bt_send_Click" 
                        Text="Envoyer" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
   
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="Ods_messages" GridLines="None" BorderWidth="0" CellSpacing="2">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" 
                Visible="False" />
            <asp:BoundField DataField="Author" HeaderText="Auteur" 
                SortExpression="Author" />
            <asp:BoundField DataField="DateCreated" HeaderText="Date " 
                SortExpression="DateCreated" />
            <asp:BoundField DataField="Content" HeaderText="Message" 
                SortExpression="Content" />
            <asp:BoundField DataField="ChannelId" HeaderText="ChannelId" 
                SortExpression="ChannelId" Visible="False" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="Ods_messages" runat="server" 
        onselecting="Ods_messages_Selecting" SelectMethod="GetMessages" 
        TypeName="AzureProvider.MiniSensor.Messages">
        <SelectParameters>
            <asp:Parameter DbType="Guid" Name="ChannelId" />
        </SelectParameters>
    </asp:ObjectDataSource>
     </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" Visible="false">
            <asp:Label ID="L_list" runat="server" Text="Liste des canaux :" style="font-weight:bold"></asp:Label><br /><br />
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        </asp:Panel>
      </div>
      </asp:Content>
<%--    </form>
</body>
</html>
--%>